package online.heycm.codegenerator.config.app;

import lombok.extern.slf4j.Slf4j;
import online.heycm.codegenerator.common.session.SessionStorage;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * @author hey
 * @version 1.0
 * @date 2024/1/5 10:25
 */
@Slf4j
@Component
public class AppDestroy implements DisposableBean {
    @Override
    public void destroy() {
        log.info("应用关闭, 释放资源...");
        SessionStorage.destroy();
    }
}
